/**
 * 共用函数方法
 * */

web_access = ''; //接口调用权限KEY





/**
 * 弹窗提示
 * */
function getWebPop(msg,url,t){
    var time, message = '', h = '';
    if (msg=='' || msg==null) {
        message = '未知错误！';
    } else {
        message = msg;
    }
    if (t==0 || t=='' || t==null) {
        time = 1000 * 2;
    } else {
        time = t;
    }
    h += '<div id="webPopMask"></div>';
    h += '<div id="webPopDetail">'+message+'</div>';
    h += '<script>';
    h += 'setTimeout("setErrClose()",'+time+'); function setErrClose(){ $("#webPop").html("").hide(); }';
    if (url!='') {
        h += 'setTimeout("setJump()",'+time+'); function setJump(){ window.location.href=\''+url+'\'; }';
    }
    h += '</script>';
    $('#webPop').html(h).show();
}